package com.coment.message.roles;

import com.alibaba.fastjson.JSONObject;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Map;
import java.util.Set;


/// 角色更新推送
@ProtobufClass
@Getter
@Setter
@NoArgsConstructor
public class RolesUpdatePush {
    /// 角色id
    private String rolesId;

    /// 用户id
    private int userInfoId;

    /// 卡片id
    private int cardId;

    /// 角色物品栏 k:物品分类 v:对应的道具 1-12 对应装备
    public Map<Integer, Set<Integer>> inventory;

    /// 角色属性
    private Map<Integer, Double> attrs;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
